<template>
	<el-dialog title="以下基金无此文件类型，导致全部文件上传失败，请确认文件类型重新上传" :visible.sync="errorCom" width="50%" :before-close="cancel">
		<el-table :data="errorList" border style="width: 100%">
			<el-table-column prop="date" label="基金代码" width="180">
				<template slot-scope="scope">
					{{ scope.row.baseInfo.fundCode }}
				</template>
			</el-table-column>
			<el-table-column prop="name" label="基金名称">
				<template slot-scope="scope">
					{{ scope.row.baseInfo.fundFullName }}
				</template>
			</el-table-column>
		</el-table>
		<div slot="footer" class="dialog-footer">
			<el-button type="primary" @click="cancel" size="small">关 闭</el-button>
		</div>
	</el-dialog>
</template>
<script>
export default {
	name: 'ErrorList',
	props: {
		errorCom: {
			type: Boolean,
			default: false
		},
		errorFunc: {
			type: Function,
			default: Function
		}
	},
	data() {
		return {
			errorList: []
		}
	},
	mounted() {},
	methods: {
		cancel() {
			this.$emit('errorFunc')
			this.errorList = []
		},

		edit(data) {
			this.errorList = JSON.parse(JSON.stringify(data))
		}
	}
}
</script>
<style lang="scss" scoped >
::v-deep .el-dialog__title {
	line-height: 24px;
	font-size: 16px;
	color: red;
}
</style>
